package com.st.swagger.entity;

import lombok.Data;


import java.time.LocalDateTime;


@Data
public class Review {

    private Long id;

    private Long userId;      // 用户ID
    private Long productId;   // 商品ID
    private String content;   // 评论内容
    private Integer rating;   // 评分（1-5）

    private LocalDateTime reviewTime; // 评论时间

    public LocalDateTime getReviewTime() {
        return reviewTime;
    }

    public void setReviewTime(LocalDateTime reviewTime) {
        this.reviewTime = reviewTime;
    }

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
